
import {httpGet,httpPost} from  "./http.js"


//轮播图
export function getBannerList(params={}){
    return httpGet({url:"/banner",params})
}
//精品歌单
export function getSongsList(params={}){
    return httpGet({
        url:"/personalized",
        params
    })
}
//歌单详情
export function getPlayDetail(params={}){
    return httpGet({
        url:"/playlist/detail",
        params
    })
}
//歌单的所有歌
export function getPlayList(params={}){
    return httpGet({
        url:"/playlist/track/all",
        params
    })
}
//获取歌词
export function getLyric(params={}){
    return httpGet({
        url:"/lyric",
        params
    })
}
//全列表模糊搜索
export function getSearch(params={}){
    return httpGet({
        url:"/search",
        params
    })
}
//请求登录
export function loginPassword(params={},data={}){
    return httpPost({
        url:"/login/cellphone",
        params,
        data

    })
}
//请求用户详情数据
export function getUserDetail(params={}){
    return httpGet({
        url:"/user/detail",
        params
    })
}
//发送验证码
export function getCaptcha(params={}){
    return httpPost({
        url:"/captcha/sent",
        params
    })
}
//验证验证码
export function validateCaptcha(params={}){
    return httpPost({
        url:"/captcha/verify",
        params
    })
}
//二维码key生成
export function getQr(params={}){
    return httpPost({
        url:"login/qr/key",
        params

    })
}
//二维码生成接口
export function qrCreate(params={}){
    return httpPost({
        url: "/login/qr/create",
        params
    })
}
//二维码检测状态接口
export function qrCheck(params={}){
    return httpPost({
        url:"/login/qr/check",
        params
    })
}

